import request from '@/utils/request'
export default {
    //分页查询订单
    getPageByCondition(page,pageSize,orderSelectByConditionVO){
        return request({
            url:`/ordersservice/ordermanage/selectPageByCondition/${page}/${pageSize}`,
            method:'post',
            data:orderSelectByConditionVO
        })
    },
    //批量删除订单
    deleteOrders(ids){
        return request({
            url:"/ordersservice/ordermanage/deleteOrders",
            method:'delete',
            params: {ids:ids}
        })
    },
    //接单和派单
    accept(id){
        return request({
            url:`/ordersservice/ordermanage/accept/${id}`,
            method:'post'
        })
    }
}